import request from '@/utils/request'

export function create(data) {
  return request({
    url: '/menu/insert',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/menu/update',
    method: 'post',
    data
  })
}
export function del(params) {
  return request({
    url: '/menu/delete',
    method: 'get',
    params: params
  })
}
export function find(params) {
  return request({
    url: '/menu/find',
    method: 'get',
    params
  })
}
export function list(params = {}) {
  return request({
    url: '/menu/list',
    method: 'get',
    params
  })
}
